package com.ofhb.webapp.client.ui.grid.events;

import com.google.gwt.event.shared.GwtEvent;

public class RowDeleteEvent extends GwtEvent<RowDeleteEventHandler> {

	private int selectedRow;

	public static Type<RowDeleteEventHandler> TYPE = new Type<RowDeleteEventHandler>();

	public RowDeleteEvent(int selectedRow) {
		this.selectedRow = selectedRow;
	}
	
	@Override
	public Type<RowDeleteEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(RowDeleteEventHandler handler) {
		handler.onRowDeleteEvent(this);

	}

	public int getSelectedRow() {
		return selectedRow;
	}

	public void setSelectedRow(int selectedRow) {
		this.selectedRow = selectedRow;
	}

}
